QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Geometric Object Types

Every QuickDraw 3D geometric object has an object type, which you can determine by calling the Q3Geometry_GetType function. Q3Geometry_GetType returns one of the following constants, or kQ3ObjectTypeInvalid if the type of an object cannot be determined or is invalid.

#define kQ3GeometryTypeBox              Q3_OBJECT_TYPE('b','o','x',' ')
#define kQ3GeometryTypeCone             Q3_OBJECT_TYPE('c','o','n','e')
#define kQ3GeometryTypeCylinder         Q3_OBJECT_TYPE('c','y','l','n')
#define kQ3GeometryTypeDisk             Q3_OBJECT_TYPE('d','i','s','k')
#define kQ3GeometryTypeEllipse          Q3_OBJECT_TYPE('e','l','p','s')
#define kQ3GeometryTypeEllipsoid        Q3_OBJECT_TYPE('e','l','p','d')
#define kQ3GeometryTypeGeneralPolygon   Q3_OBJECT_TYPE('g','p','g','n')
#define kQ3GeometryTypeLine             Q3_OBJECT_TYPE('l','i','n','e')
#define kQ3GeometryTypeMarker           Q3_OBJECT_TYPE('m','r','k','r')
#define kQ3GeometryTypeMesh             Q3_OBJECT_TYPE('m','e','s','h')
#define kQ3GeometryTypeNURBCurve        Q3_OBJECT_TYPE('n','r','b','c')
#define kQ3GeometryTypeNURBPatch        Q3_OBJECT_TYPE('n','r','b','p')
#define kQ3GeometryTypePixmapMarker     Q3_OBJECT_TYPE('m','r','k','p')
#define kQ3GeometryTypePoint            Q3_OBJECT_TYPE('p','n','t',' ')
#define kQ3GeometryTypePolygon          Q3_OBJECT_TYPE('p','l','y','g')
#define kQ3GeometryTypePolyhedron       Q3_OBJECT_TYPE('p','l','h','d')
#define kQ3GeometryTypePolyLine         Q3_OBJECT_TYPE('p','l','y','l')
#define kQ3GeometryTypeTorus            Q3_OBJECT_TYPE('t','o','r','s')
#define kQ3GeometryTypeTriangle         Q3_OBJECT_TYPE('t','r','n','g')
#define kQ3GeometryTypeTriGrid          Q3_OBJECT_TYPE('t','r','i','g')
#define kQ3GeometryTypeTriMesh          Q3_OBJECT_TYPE('t','m','s','h')

Constant descriptions

kQ3GeometryTypeBox
A box. See "Boxes" for information about boxes.
kQ3GeometryTypeCone
A cone. See "Cones" for information about cones.
kQ3GeometryTypeCylinder
A cylinder. See "Cylinders" for information about cylinders.
kQ3GeometryTypeDisk
A disk. See "Disks" for information about disks.
kQ3GeometryTypeEllipse
An ellipse. See "Ellipses" for information about ellipses.
kQ3GeometryTypeEllipsoid
An ellipsoid. See "Ellipsoids" for information about ellipsoids.
kQ3GeometryTypeGeneralPolygon
A general polygon. See "General Polygons" for information about general polygons.
kQ3GeometryTypeLine
A line. See "Lines" for information about lines.
kQ3GeometryTypeMarker
A bitmap marker. See "Markers" for information about bitmap markers.
kQ3GeometryTypeMesh
A mesh. See "Meshes" for information about meshes.
kQ3GeometryTypeNURBCurve
A NURB curve. See "NURB Curves" for information about NURB curves.
kQ3GeometryTypeNURBPatch
A NURB patch. See "NURB Patches" for information about NURB patches.
kQ3GeometryTypePixmapMarker
A pixmap marker. See "Markers" for information about pixmap markers.
kQ3GeometryTypePoint
A point. See "Point Objects" for information about point.
kQ3GeometryTypePolygon
A simple polygon. See "Simple Polygons" for information about simple polygons.
kQ3GeometryTypePolyhedron
A polyhedron. See "Polyhedra" for information about polyhedra.
kQ3GeometryTypePolyLine
A polyline. See "Polylines" for information about polylines.
kQ3GeometryTypeTorus
A torus. See "Tori" for information about tori.
kQ3GeometryTypeTriangle
A triangle. See "Triangles" for information about triangles.
kQ3GeometryTypeTriGrid
A trigrid. See "Trigrids" for information about trigrids.
kQ3GeometryTypeTriMesh
A trimesh. See "Trimeshes" for information about trimeshes.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |